how to create stopwatch using react js